from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'elearning.views.home', name='home'),
    # url(r'^elearning/', include('elearning.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    (r'^elearning/', include('elearning.escola.urls')),
    (r'accounts/login/$','elearning.escola.views.user_login'),
    (r'accounts/verificar_login/$','elearning.escola.views.verificar_login'),
    (r'accounts/cadastrar/$','elearning.escola.views.cadastrar'),
    (r'accounts/efetuar_cadastro_admin/$','elearning.escola.views.efetuar_cadastro_admin'),
    (r'accounts/efetuar_cadastro_professor/$', 'elearning.escola.views.efetuar_cadastro_professor'),
    (r'accounts/logout/$','elearning.escola.views.user_logout'),
    url(r'^admin/', include(admin.site.urls))
)
